{{ if model }}
<?php //echo form_open('shop/cart/add/',array('id'=>'frm_product'));?>
<input type="hidden" value="" name="pid" />
<div class="block ">
	<h3 class="post-h">{{ title }}</h3>
    <div class="content post-product">
    	<ul class="post-product">
    	{{ model }}
        	<li class="product">
            	<div class="in-pro">
            	<a class="pic" title="{{ title }}" href="{{ url:site uri='shop/detail/{{slug}}' }}">
            	<?php if($image_show) { ?>
                <img width="<?php echo $width ?>" src="{{ image }}" />
                <?php } ?>
                </a>
                <p class="price">
            	 <span>{{ helper:number value = price }} {{helper:lang line='shop:currency'}}</span>
            	</p>
                <span class="name_p"><a title="{{ title }}" href="{{ url:site uri='shop/detail/{{slug}}' }}">{{ title }}</a></span>
                <?php if($cart) { ?>
                <div>
                <input pid="{{id}}" type="submit" class="addtocart btn" value="{{ helper:lang line='global:add_cart' }}" />
                </div>
                <?php } ?>
                </div>
            </li>
        {{ /model }}
        </ul>
    </div>
</div>
<?php //echo form_close();?>
{{endif}}